<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/9/20 0020
  Time: 19:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>

<script src="${path}/static/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="${path}/static/taoshunda/protocol/protocol.js"></script>

<table id="table"
       class="table table-striped table-bordered"
       data-toggle="table"
       data-toolbar="#toolbar"
       data-url="${path}/web/html/queryHtml"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]">
    <thead>
    <tr>
        <th data-field="name">注册协议名称</th>
        <th data-formatter="operateFormatter" data-events="operateEvents">操作</th>
    </tr>
    </thead>
</table>


<div id="showDetail-div" class="slidingmenu box-model box box-info" model-width="60%" model-left="40%">
    <div class="box-header">
        <h3 class="box-title">修改信息</h3>
    </div>
    <div class="col-md-7">
        <form role="form" method="post" id="htmlFrom">
            <input id="id" name="id" type="hidden">

            <div class="col-md-6">
                <div class="form-group">
                    <label>协议名称:</label>
                    <input type="text" class="form-control" name="name" id="name"
                           style="width: 70%">
                </div>
            </div>

            <div class="col-md-10">
                <div class="form-group">
                    <label>协议内容:</label>
                    <textarea  name="value" type="hidden" id="content" ></textarea>
                    <script id="editor" class="editor" type="text/plain" style="height:350px;width:800px"></script>
                </div>
            </div>

        </form>
    </div>

    <div class="col-md-12" style="margin-top: 5%">
        <button class="btn btn-info" data-event="submit-updateInfo">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model">关闭</button>
    </div>
</div>

<div id="showNoticeDetail-div" class="slidingmenu box-model box box-info" model-width="60%" model-left="40%">
    <div class="box-header">
        <h3 class="box-title">修改信息</h3>
    </div>
    <div class="col-md-7">
        <form role="form" method="post" id="htmlValueFrom">
            <input id="ids" name="id" type="hidden">

            <div class="col-md-6">
                <div class="form-group">
                    <label>协议名称:</label>
                    <input type="text" class="form-control" name="name" id="names"
                           style="width: 70%">
                </div>
            </div>

            <div class="col-md-8">
                <div class="form-group">
                    <label>协议内容:</label><br>
                    <textarea  name="value" type="text" id="value" style="width: 800px;height: 300px"></textarea>
                </div>
            </div>

        </form>
    </div>

    <div class="col-md-12" style="margin-top: 5%">
        <button class="btn btn-info" data-event="submit-updateValueInfo">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model">关闭</button>
    </div>
</div>


<script>
    var editor = UE.getEditor("editor");
</script>